package com.ym.medical.domain.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ym.base.enums.FlagEnum;
import com.ym.medical.domain.entity.SubjectReplyEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 主题回复对象 subject_reply
 *
 * @author ym
 * @date 2020-08-24
 */
@ApiModel("主题回复-列表")
@Data
public class SubjectReplyListMobileVO extends SubjectReplyEntity {

    @ApiModelProperty(notes = "用户(评论者昵称)")
    private String userNickName;

    @ApiModelProperty(notes = "用户(评论者姓名)")
    private String userRealName;

    @ApiModelProperty(notes = "用户(评论者头像)")
    private String userHeadUrl;

    @ApiModelProperty(notes = "是否本人")
    @JsonSerialize(converter = FlagEnum.Covert.class)
    private String flagSelf = FlagEnum.NO.getKey();

    @ApiModelProperty(notes = "本人是否点赞")
    @JsonSerialize(converter = FlagEnum.Covert.class)
    private String flaglike = FlagEnum.NO.getKey();
}
